package com.system.domin;

public class Comment {
    private int id;
    private String email;
    private int publishID;
    private String userName;
    private String context;
    private String timestamp;
    private int parent_id;
    private String status;
    private int unread;

    public Comment(String email,int publishID,String userName, String context, String timestamp, int parent_id) {
        this.email = email;
        this.publishID = publishID;
        this.userName = userName;
        this.context = context;
        this.timestamp = timestamp;
        this.parent_id = parent_id;
        this.unread = 0;
        this.status = "pending";
    }
    public Comment() {
    }

    public int getUnread() {
        return unread;
    }

    public void setUnread(int unread) {
        this.unread = unread;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getId() {
        return id;
    }

    public int getPublishID() {
        return publishID;
    }

    public void setPublishID(int publishID) {
        this.publishID = publishID;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", context='" + context + '\'' +
                ", timestamp=" + timestamp +
                ", parent_id=" + parent_id +
                ", status='" + status + '\'' +
                '}';
    }
}
